import 'package:app/common/lib.dart';
import 'package:app/routes/routers.dart';
import 'package:flutter/material.dart';

Future<void> main() async {
  var lib = Lib();
  await lib.init();
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  // ignore: library_private_types_in_public_api
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
    // onload();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      debugShowCheckedModeBanner: false, // debug 图标
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      initialRoute: "/tab",
      onGenerateRoute: onGenerateRoute,
    );
  }
}
